let v = new Vue({
    el:'#main-container',
    data:{
        myConfig:{
            UEDITOR_HOME_URL:'static/ueditor/',
            serverUrl:'ueditor',
            maximumWords:500000
        },
        statute:{}
    },
    methods:{
        doUpdate:function () {
            axios({
                url:'manager/statute/doUpdate',
                method:'put',
                data:this.statute
            }).then(resp => {
                parent.layer.close(parent.layer.getFrameIndex(window.name));
                parent.layer.msg(resp.data.msg);
            }).catch(error => {
                layer.msg(error.message);
                parent.layer.success = false;
            })
        }

    },
    components:{
        VueUeditorWrap
    },
    created:function () {
        this.statute = parent.layer.obj;
    }
})